<?php /* Smarty version Smarty-3.1.13, created on 2013-04-19 15:13:16
         compiled from "select.html" */ ?>
<?php /*%%SmartyHeaderCode:133195170ee8c835be2-81277289%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f7b749bfafbcf5020272c2d5f7996c464e1252e5' => 
    array (
      0 => 'select.html',
      1 => 1366355488,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '133195170ee8c835be2-81277289',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'username' => 0,
    'db_count' => 0,
    'db_coltitle' => 0,
    'col' => 0,
    'db_rows' => 0,
    'dbrow' => 0,
    'bg_id' => 0,
    'select_count' => 0,
    'select_coltitle' => 0,
    'select_rows' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_5170ee8cba41b8_79104581',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5170ee8cba41b8_79104581')) {function content_5170ee8cba41b8_79104581($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv=Content-Type content="text/html;charset=utf-8">
<link href="smarty2.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="../js/jquery1.3.2.js"></script>
<script type="text/javascript" src="smarty2.js"></script>
<title>选择奶茶</title>
</head>
<body>
<div>
<h3>当前账户：<?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</h3><a href="logout.php">注销</a></div>
<br/>
<h1>奶茶种类</h1>
<table id="Table" border="1" align="center" cellpadding="10" cellspacing="2" bordercolor="#ffaaoo">
<caption style="font-size:15px">当前可选奶茶数：<label id="tableRowCount"><?php echo $_smarty_tpl->tpl_vars['db_count']->value;?>
</label>       </caption>
<?php  $_smarty_tpl->tpl_vars['col'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['col']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['db_coltitle']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['col']->key => $_smarty_tpl->tpl_vars['col']->value){
$_smarty_tpl->tpl_vars['col']->_loop = true;
?>
    <th><?php echo $_smarty_tpl->tpl_vars['col']->value;?>
</th>
<?php } ?>
<th>操作</th>
<?php  $_smarty_tpl->tpl_vars['dbrow'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dbrow']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['db_rows']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['dbrow']->key => $_smarty_tpl->tpl_vars['dbrow']->value){
$_smarty_tpl->tpl_vars['dbrow']->_loop = true;
?>
    <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["id"];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["name"];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["size_mode"];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["price"];?>
</td>
	<td>
		<input type="button" value="选择" onclick='selectTea("<?php echo $_smarty_tpl->tpl_vars['username']->value;?>
",<?php echo $_smarty_tpl->tpl_vars['dbrow']->value["id"];?>
,<?php echo $_smarty_tpl->tpl_vars['bg_id']->value;?>
,"<?php echo $_smarty_tpl->tpl_vars['dbrow']->value["name"];?>
")' />
	</td> 
    </tr>
<?php } ?>
</table>


<br />
<br />

<h1> 选择奶茶详情：</h1>
<table id="select_info" border="1" align="center" cellpadding="10" cellspacing="2" bordercolor="#ffaaoo">
<caption style="font-size:15px">选择人数：<label id="tableRowCount"><?php echo $_smarty_tpl->tpl_vars['select_count']->value;?>
</label>       </caption>
<?php  $_smarty_tpl->tpl_vars['col'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['col']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['select_coltitle']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['col']->key => $_smarty_tpl->tpl_vars['col']->value){
$_smarty_tpl->tpl_vars['col']->_loop = true;
?>
    <th><?php echo $_smarty_tpl->tpl_vars['col']->value;?>
</th>
<?php } ?>
<?php  $_smarty_tpl->tpl_vars['dbrow'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dbrow']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['select_rows']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['dbrow']->key => $_smarty_tpl->tpl_vars['dbrow']->value){
$_smarty_tpl->tpl_vars['dbrow']->_loop = true;
?>
    <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["id"];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["people_name"];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["tea_name"];?>
</td>
	 
    </tr>
<?php } ?>
</table>
<div id="error"></div>
</body>
</html><?php }} ?>